<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
    <van-button type="default">默认按钮</van-button>
<van-button type="primary">主要按钮</van-button>
<van-button type="info">信息按钮</van-button>
<van-button type="warning">警告按钮</van-button>
<van-button type="danger">危险按钮</van-button>

  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
import {Login} from "@/request/api.js"
export default {
  name: 'Home',
  components: {
    HelloWorld
  },
  methods:{
    add(){
      var obj= {
          mobile: '17803824895',
          password: 'zhao775623',
          type: 1
        }

        Login(obj).then(res => {
          console.log(res)
         
        });
    }
  },
  mounted() {
    this.add()
    
  }
}
</script>
